package com.wzy.dao;

import com.wzy.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;


import javax.annotation.Resource;
import java.util.List;
@Mapper
public interface UserDao {
//    @Select("select * from wzy_user")
    List<User> findAll();
//    @Insert("INSERT INTO wzy_user(username,password,nickname,email,phone,address) VALUES(#{username},#{password},#{nickname},#{email},#{phone},#{address})")
    Integer insert(User user);
    Integer update(User user);
    Integer delete(User user);
}
